package Com.amit.corejava;

public class Lab16 {

	int id;
	String name;
	
	void display()
	{
		System.out.println(id+" "+name);
	}
	
	Lab16(int i,String n)
	{
		id=i;
		name=n;
	}
	
	Lab16(Lab16 k)
	{
		id=k.id;
		name=k.name;
	}
	
	public static void main(String[] args) 
	{
		
		
		Lab16 l1=new Lab16(1,"anil");
		
		Lab16 l2=new Lab16(l1);
		
		l1.display();
		
		l2.display();
		
	}

}
